Stat 365: Statistical Communication
Today we will…
Use a table when…1
| study_year | facility_type | avg_weekly_cost | sd_weekly_cost |
|---|---|---|---|
| 2008 | mc | 245.0569 | 36.12943 |
| 2018 | mc | 277.3488 | 70.83294 |
| 2008 | mfcc | 155.0660 | 27.43181 |
| 2018 | mfcc | 196.1191 | 41.84334 |
| Facility | Year | Mean ($) | Std. Dev. |
|---|---|---|---|
| Center-based | 2008 | 245.1 | 36.1 |
| Center-based | 2018 | 277.3 | 70.8 |
| Family-based | 2008 | 155.1 | 27.4 |
| Family-based | 2018 | 196.1 | 41.8 |
| Note: | |||
| Data source: National Database of Childcare Prices (NDCP) |
Align numbers to the right
Select your font to be legible
Unidirectional categorical items are laid out in one direction only (think long data)
Bidirectional categorical items are laid out in both directions (think wide data)
Boldfaced or Italic text
Size
Rlibrary(gt)library(DT)library(kable)library(kableExtra)One-number Story
Listen to Storytelling with Data Podcasts (Data Viz)